<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>

<%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>CS410 Project</title>

	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<link rel="stylesheet" href="<%=request.getContextPath() %>/default.css" type="text/css">
  </head>
  
  <body>

<div id="header">
	<div id="logo">
		<h1>
			<html:img width="40" src="../images/EMPTY.GIF"/>
			<html:link page="/pages/home.jsp">Textbook Crossroads</html:link>
		</h1>
		<h2>Team 14 - LoneTree</h2>
	</div>
	<div id="menu">
		<ul>
			<li class="active">
			<logic:notPresent name="logged_in_user_in_session">
			<html:link page="/pages/home.jsp">Home</html:link>
			</logic:notPresent>
			<logic:present name="logged_in_user_in_session">
			<logic:equal value="false" name="logged_in_user_in_session" property="admin">
			<html:link action="/PrepForMyBooks">Dashboard</html:link>
			</logic:equal>
			<logic:equal value="true" name="logged_in_user_in_session" property="admin">
			<html:link page="/pages/admindashboard.jsp">Dashboard</html:link>
			</logic:equal>
			</logic:present>
			</li>
			<li><html:link page="/pages/books.jsp">Books</html:link></li>
			<li><html:link page="/pages/courses.jsp">Courses</html:link></li>
			<li><html:link page="/pages/about.jsp">About</html:link></li>
			<li class="logon">
			<logic:notPresent name="logged_in_user_in_session">
			<html:link page="/pages/logon.jsp">LogIn</html:link>
			</logic:notPresent>
			<logic:present name="logged_in_user_in_session">
			<html:link action="/logout">LogOut</html:link>
			</logic:present>
			</li>
		</ul>
	</div>
</div>

<div id="content">
	<div id="sidebar">
		<div id="categories">
			<div id="archives" class="boxed">
				<h2>Contributors</h2>
				<div class="content">
					<ul>
						<li>Andrew Lee</li>
						<li>Bojan Martin</li>
						<li>Dimeji Omikunle</li>
						<li>Minghui Yu</li>
					</ul>
				</div>
			</div>
		</div>
	</div>

	<div id="posts">
		<div class="post">
			<h2 class="title">Book Search Results</h2>
			<div class="meta">
				<p class="date">Your search result:</p>
			</div>
			<div class="story">
				<logic:present name="booklist">
				<logic:iterate name="booklist" id="books">
				<html:link page="/ViewBookDetails.do" paramName="books" paramProperty="isbn.getIsbnString" paramId="isbn">
				<bean:write name="books" property="title" /></html:link>
				</logic:iterate>
				</logic:present>
				
				<logic:notPresent name="booklist">
				<form action="../SearchBook.do">
				<h3>Please enter keywords to search by book title:</h3>
				<input name="title" type="text" size="20"/>
				<input type="submit" value="Search" />
				</form>
				</logic:notPresent>
			<br>
			</div>
		</div>
	</div>
</div>





<div id="footer">
	<p id="copy">&copy;2007 LoneTree.</p>
	<p> (Andrew Lee | Bojan Martin | Dimeji Omikunle | Minghui Yu)</p>
</div>
  </body>
</html>